//
//  UnContHead.m
//  test
//
//  Created by 李彦宏 on 2018/3/8.
//  Copyright © 2018年 朱圳. All rights reserved.
//

#import "UnContHead.h"

@implementation UnContHead

//自定义head初始化方法
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
//添加子控件
-(void)setUI{
    UILabel *lb1=[[UILabel alloc]initWithFrame:CGRectMake(5, 0, 90, 40)];
    lb1.text=@"2017/12/20";
    lb1.textAlignment=NSTextAlignmentCenter;
    lb1.font=[UIFont systemFontOfSize:14];
    lb1.numberOfLines=0;
    lb1.textColor=[UIColor blackColor];
    self.data=lb1;
    [self.contentView addSubview:lb1];
    
    UILabel *lb2=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/4+20, 8, 35, 25)];
    lb2.text=@"详情";
    lb2.textAlignment=NSTextAlignmentCenter;
    lb2.font=[UIFont systemFontOfSize:14];
    lb2.textColor=[UIColor greenColor];
    self.cont=lb2;
    [self.contentView addSubview:lb2];
    
    UILabel *lb3=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/2+10, 8, 50, 25)];
    lb3.text=@"255";
    lb3.textAlignment=NSTextAlignmentCenter;
    lb3.font=[UIFont systemFontOfSize:14];
    lb3.textColor=[UIColor blackColor];
    self.sum=lb3;
    [self.contentView addSubview:lb3];
    
    UILabel *lb4=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-65, 8, 50, 25)];
    lb4.text=@"未确认";
    lb4.textAlignment=NSTextAlignmentCenter;
    lb4.font=[UIFont systemFontOfSize:14];
    lb4.textColor=XGColor;
    self.IsSelet=lb4;
    [self.contentView addSubview:lb4];
    
    
    //灰线
    UILabel *lb5=[[UILabel alloc]initWithFrame:CGRectMake(0,39.5 , ScreenWidth, 0.5)];
    lb5.backgroundColor=[UIColor lightGrayColor];
    lb5.text=@"";
    [self.contentView addSubview:lb5];
    
}



@end
